import request from '@/utils/request'

// 登录
export const login = (data) => {
  return request('/login', 'post', data)
}
// 首页头部分类pc
export const headerCategory = (url, method) => {
  return request(url, method)
}

// 首页轮播图
export const banner = () => {
  return request('/home/banner', 'get')
}

// 首页新鲜好物
export const newGoods = () => {
  return request('/home/new', 'get')
}

// 首页人气推荐
export const hotGoods = () => {
  return request('/home/hot', 'get')
}

// 首页产品区块
export const product = () => {
  return request('/home/goods', 'get')
}
